package com.webbei.Backstage.action;

import java.util.List;

import com.webbei.Backstage.service.BackstateSer;
import com.webbei.friendcenter.service.MyFriendCenter;
import com.webbei.pojo.Carseries;

public class GetCarSeriesByBrandIdAction {
	private BackstateSer bao;
	private List<Carseries> carseries;
	private int brandId;
	
	public String execute(){
		System.out.println(brandId);
		carseries=bao.getAllCarSeriesByBrandId(brandId);
		System.out.println(carseries.size());
		System.out.println(carseries.toString());
		return "success";
	}
	
	public int getBrandId() {
		return brandId;
	}

	public void setBrandId(int brandId) {
		this.brandId = brandId;
	}

	public List<Carseries> getCarseries() {
		return carseries;
	}

	public void setCarseries(List<Carseries> carseries) {
		this.carseries = carseries;
	}

	public void setBao(BackstateSer bao) {
		this.bao = bao;
	}

	
	
}
